<!DOCTYPE html>
<html lang="zh"
	  xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
	<meta charset="utf-8">
	<title>添加用户</title>
	<link rel="stylesheet" th:href="@{/layui/css/layui.css}" href="../../static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" th:href="@{/css/public.css}" href="../../static/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<input type="hidden" id="user_id" name="id"/>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">用户名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input username" lay-verify="required|username" placeholder="请输入用户名" required>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">姓名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input name" lay-verify="required|name" placeholder="请输入姓名" required>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">身份证</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input identity" lay-verify="sfz" placeholder="请输入身份证">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">邮箱</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input email" lay-verify="userEmail" placeholder="请输入邮箱">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">手机</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input mobile" lay-verify="required|phone" placeholder="请输入手机" required>
		</div>
	</div>

	<div class="layui-row">
		<div class="magb15 layui-col-md4 layui-col-xs12">
			<label class="layui-form-label">性别</label>
			<div class="layui-input-block userSex"  >
				<input type="radio" name="sex" value="男" title="男" >
				<input type="radio" name="sex" value="女" title="女" >
<!--				<input type="radio" name="sex" value="保密" title="保密">-->
			</div>
		</div>
		<div class="magb15 layui-col-md4 layui-col-xs12">
			<label class="layui-form-label">状态</label>
			<div class="layui-input-block">
				<select name="status" class="userStatus" lay-filter="userStatus" id="status">
					<option value="1">启用</option>
					<option value="0">禁用</option>
				</select>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">角色</label>
			<div class="layui-input-block" id="role">
				<input  th:unless="${xxStatus}" type="checkbox" name="role" value="1" title="超级管理员" >
				<input type="checkbox" name="role" value="4" title="学校管理员" >
				<!--<input type="checkbox" name="role" value="6" title="教师" >-->
				<!--<input type="checkbox" name="role" value="8" title="学生" >-->
			</div>
		</div>
	</div>
<!--	<div class="layui-row" style="display: none">
		<label class="layui-form-label">学校</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input " lay-verify="" placeholder="请选择学校" >
		</div>
	</div>-->
	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addUser">立即添加</button>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" th:src="@{/layui/layui.js}" src="../../static/layui/layui.js"></script>
<script type="text/javascript" th:src="@{/js/util.js}" src="../../static/js/util.js"></script>
<script type="text/javascript" th:src="@{/js/userAdd.js}" src="../../static/js/userAdd.js"></script>
</body>
</html>